/* Checken, ob User genug Download-Freiraum hat */
t=freiraum-bcred
if t<0 then do
send cr||cr||notenoughbc.lng||cr
if exists('hbin:'Brett'/temp/BAD-XFER.LOG') then address command 'move hbin:'Brett'/temp/BAD-XFER.#? to mb:user/'user'/Hydra.BAD/'
quit
exit
end
/* User fragen, ob der Transfer tatsΣchlich gestartet werden soll */
SEND startxfer.lng
BLUEREAD 1
jn=result
if jn="" then jn=yep.lng
if upper(jn)="N" then do
if exists("T:UL"port) then address command "delete T:UL"port
if exists('hbin:'Brett'/temp/BAD-XFER.LOG') then address command 'move hbin:'Brett'/temp/BAD-XFER.#? to mb:user/'user'/Hydra.BAD/'
address command "delete t:"Brett
quit
exit
end
/* Hydra-Transfer starten! */
send cr||cr||cr" "inithyd.lng||" "abort.lng
if exists("mb:HydraLogFile/Hydra.log") then address command 'delete mb:HydraLogFile/Hydra.log'
if exists("T:UL"port) then address command 'c:hydracom speed 'baud' line 'linebaud' port 'Port' device 'Serdevice' dropdtr receive hbin:'Brett'/temp/ result mb:HydraLogFile/Hydra.Log nobell handshake hard send @T:UL'port
else address command 'c:hydracom speed 'baud' line 'linebaud' port 'Port' device 'Serdevice' dropdtr receive hbin:'Brett'/temp/ result mb:HydraLogFile/Hydra.Log nobell handshake hard send'
/* Rⁿckmeldung des anderen Hydracom-Ports abfangen */
i=0
ruck:
getchar
i=i+1
if i<=100 then do
signal ruck
end
/* HydraLog auswerten und Downloadfreiraum anpassen */
bcredz=0
open(log,'mb:HydraLogFile/Hydra.log','R')
if ExtraULDL=1 then do
if exists('mb:HydraLog/ULoads') then open(ul,'mb:HydraLog/ULoads','A')
else open(ul,'mb:HydraLog/ULoads','W')
if exists('mb:HydraLog/DLoads') then open(dl,'mb:HydraLog/DLoads','A')
else open(dl,'mb:HydraLog/DLoads','W')
end
if exists('mb:protokolle/UpDownloadprotokoll') then open(uldl,'mb:protokolle/UpDownloadprotokoll','A')